<?php
class SP_Helper_Request
{
	static public function get($name,$value=null)
	{
		if( isset($_REQUEST[$name]) )
		{
			if( get_magic_quotes_gpc() )
			{
				return SP_Common_Functions::stripSlashesDeep($_REQUEST[$name]);
			}
			return $_REQUEST[$name];
		}
		return $value;
	}
	
	static public function has($name)
	{
		return isset($_REQUEST[$name]);
	}
}